

import xadmin
from .models import NperModel,CourseModel,ClassificationCourseModel,ShufflingModel


class NperModelAdmin(object):
    fields = ["number", "apply", "residue","apply_start_time","apply_end_time","start_time","end_time","learning"]
    list_display = ["number", "apply", "residue","apply_start_time","apply_end_time","start_time","end_time","learning"]


xadmin.site.register(NperModel, NperModelAdmin)


class CourseModelAdmin(object):
    fields = ["name", "introduce","status","image","money","nper","teacher","classification"]
    list_display = ["name", "introduce","status","image","money","nper","teacher","classification"]


xadmin.site.register(CourseModel, CourseModelAdmin)

class ClassificationCourseModelAdmin(object):
    fields = ["name",]
    list_display = ["name",]



xadmin.site.register(ClassificationCourseModel, ClassificationCourseModelAdmin)


class ShufflingModelAdmin(object):
    fields = ["image","status"]
    list_display = ["image","status"]



xadmin.site.register(ShufflingModel, ShufflingModelAdmin)
